package cn.yr.blog.mapper;

import cn.yr.common.core.domain.entity.YrArticleTag;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 文章(YrArticle)表数据库访问层
 *
 * @author Lang
 * @since 2020-03-05 20:18:22
 */
@Mapper
public interface ArticleTagMapper extends BaseMapper<YrArticleTag> {

    @Select("select article_id from article_tag ${ew.customSqlSegment}")
    List<Integer> selectArticleIds(@Param(Constants.WRAPPER) QueryWrapper wrapper);
}